package testThread;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Base64;
import java.util.Base64.Encoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import com.mongodb.Mongo;


public class TestObject {
	class Student{
		private String name;

		protected Student(String name) {
			super();
			System.out.println("test");
			this.name = name;
		}
		
		public void test(){
			System.out.println("test");
		}
		
	}
	
	public int num;

	public static final TestObject instance = new TestObject();
	
	private TestObject(){
		
	}
	
	
	public static void main(String[] args) {
//		Jedis jedis = new Jedis("192.168.142.128", 6379);
//		Long hset = jedis.hset("testHash", "key4",null);
//		System.out.println(hset);
//		jedis.hset("testHash", "key2", "value2");
//		String hget = jedis.hget("testHash", "key3");
//		System.out.println(hget == null);
		
	}
	
}

class Cat extends Object{
	
static int a ;
	private int id;
	
	protected Cat(int id) {
		super();
		this.id = id;
	}

	@Override
	protected void finalize() throws Throwable {
		// TODO Auto-generated method stub
		super.finalize();
		System.out.println(id);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
}
